package com.esd.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.esd.crm.entity.District;
import com.esd.crm.mapper.DistrictMapper;
import com.esd.crm.service.DistrictService;

@Service
public class DistrictServiceImpl implements DistrictService {
	@Autowired
	private DistrictMapper mapper;

	@Override
	public int deleteByPrimaryKey(Integer areaid) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(areaid);
	}

	@Override
	public int insert(District record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(District record) {
		// TODO Auto-generated method stub
		return mapper.insertSelective(record);
	}

	@Override
	public District selectByPrimaryKey(Integer areaid) {
		// TODO Auto-generated method stub
		return mapper.selectByPrimaryKey(areaid);
	}

	@Override
	public List<District> selectByParentId(Integer parentid) {
		// TODO Auto-generated method stub
		return mapper.selectByParentId(parentid);
	}

	@Override
	public int updateByPrimaryKeySelective(District record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(District record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

}
